Name Days (cs)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/OzzyCzech/namedays-cs/main.yml?style=for-the-badge)
Simple library to get Czech name days (jmeniny
, svátek
) for a given date.
Functions
All functions are available in the main module. You can import them like this:
import * as namedays from 'namedays-cs';
Name days
There are basically two functions to get getting name days.
The first one returns a string of name days separated by
a
letter. The second one returns an array of name days.
import {getNameDay, getNameDayArray} from 'namedays-cs';
const date = new Date(2024, 11, 24);
getNameDay(date);
getNameDay(date, ', ');
getNameDayArray(date);
It is possible that there are no name days for a given date:
import {getNameDay, getNameDayArray} from 'namedays-cs';
const date = new Date(2024, 11, 25);
getNameDay(date);
getNameDayArray(date);
Credits
License
MIT